/*
 * @Descripttion: 
 * @Author: zhangchong zc16607@gmail.com
 * @Date: 2023-02-27 16:08:44
 * @LastEditors: zhangchong zc16607@gmail.com
 * @LastEditTime: 2023-02-28 10:46:33
 */

const commonRes = require('../utils/commonRes')
const login = require('./login.router')


const routerConf = [
  { path: '/api', router: login }
]

function routes(app) {
  // 根目录
  app.get('/', (req, res) => commonRes(res, { word: 'Hello World !!!' }))

  routerConf.forEach((conf) => app.use(conf.path, conf.router))
}

module.exports = routes